let a = ''
let env = ''
let envApiUrl = '' 
let srv = '' 
let busi = ''
let www = ''
let edu = ''
let appVersion = ''
let host = location.host
if (host == 'busi.xueerqin.net') {
    a = 'https://auth.xueerqin.net'
    env = 'https://app.xueerqin.net'  
    envApiUrl = 'https://api.xueerqin.net'        
    srv = 'https://srv.xueerqin.net'      
    busi = 'https://busi.xueerqin.net'        
    www = 'https://xueerqin.net'     
    edu = 'https://edu.fjfuyu.net'
    appVersion = 'release'
} else if (host == 's-busi.xueerqin.net') {
    a = 'https://sauth.xueerqin.net'
    env = 'https://sapp.xueerqin.net'  
    envApiUrl = 'https://s-api.xueerqin.net'        
    srv = 'https://srv.xueerqin.net'      
    busi = 'https://s-busi.xueerqin.net'        
    www = 'https://stag.xueerqin.net'    
    edu = 'https://stag.edu.fjfuyu.net'
    appVersion = 'trial'
} 
else {
    a = 'https://tauth.xueerqin.net'
    env = 'https://tapp.xueerqin.net'
    envApiUrl = 'https://t-api.xueerqin.net' 
    srv = 'https://tsrv.xueerqin.net'  
    busi = 'https://t-busi.xueerqin.net'    
    www = 'https://twww2.xueerqin.net'  
    edu = 'https://test.edu.fjfuyu.net'
    appVersion = 'trial'
}


if (host == 'busi.xueerqin.net') {
   
} else if (host == 's-busi.xueerqin.net') {
    // edu = 'https://hsv0-3-1-s-edu.fjfuyu.net'
} 
else {
    edu = 'https://hsv0-3-1-t-edu.fjfuyu.net'
}

export const authUrl = a
export const baseUrl = env
export const apiUrl = envApiUrl
export const public2 = srv + '/public-api'
export const busiUrl = busi
export const wwwUrl = www
export const srvUrl = srv
export const eduUrl = edu
export const appId = 'wxb146c07ed12946df'
export const envVersion = appVersion
